package cn.com.dingtek.genius.manager.server.repository.db.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DeviceBase {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    private Integer deviceType;


    private Integer deviceSocket;


    private String imei;


    private String waveLength;


    private Integer initDate;


    private Integer platformType;


    private Long companyId;

    private Integer deviceStatus;

    private String remarks;

    private String createUser;

    private String updateUser;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date ctime;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date utime;

    @Version
    private Integer version;
}
